package online.cmagic.createType.factory.abstractfactory;

/**
 * @author wangsc
 * @date: 2020年04月12日 13:33
 * @since JDK 1.8
 */
public interface Engine {
    void run();
    void start();
}

class LuxuryEngine implements Engine{

    public void run() {
        System.out.println("转得快");
    }

    public void start() {
        System.out.println("启动快! 可以自动启停");
    }
}

class LowEngine implements Engine{

    public void run() {
        System.out.println("转得慢");
    }

    public void start() {
        System.out.println("启动慢");
    }
}